﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Entity.WorkflowEntity
{
    /// <summary>
    /// Elsa自带的表，记录流程的执行历史
    /// </summary>
    [SugarTable("WORKFLOWEXECUTIONLOGRECORDS")]
    public class WorkflowExecutionLogRecords
    {
        /// <summary>
        /// ID;GUID
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; } = Guid.NewGuid().ToString();

        [SugarColumn(ColumnName = "WORKFLOWINSTANCEID")]
        public string WorkflowInstanceId { get; set; } = Guid.NewGuid().ToString();

        [SugarColumn(ColumnName = "ACTIVITYID")]
        public string ActivityId { get; set; } = Guid.NewGuid().ToString();

        [SugarColumn(ColumnName = "ACTIVITYTYPE")]
        public string ActivityType { get; set; } = Guid.NewGuid().ToString();

        [SugarColumn(ColumnName = "TIMESTAMP")]
        public DateTime Timestamp { get; set; }

        [SugarColumn(ColumnName = "EVENTNAME")]
        public string? EventName { get; set; }
    }
}
